package org.simplesocket.simplenettycore.utils;

public class CommonUtils {
    
    public static void printException(Exception e){
        System.out.println(e.toString());
        StackTraceElement[] stackTrace = e.getStackTrace();
        for (StackTraceElement element : stackTrace) {
            System.out.println("\t\t" + element.toString());
        }
    }
    
    public static void printIcon(){
        System.out.println("""
                                         __ _                 _             __     _   _        \s
                                        / _(_)_ __ ___  _ __ | | ___     /\\ \\ \\___| |_| |_ _   _\s
                                        \\ \\| | '_ ` _ \\| '_ \\| |/ _  \\  /  \\/ / _ \\ __| __| | | |
                                        _\\ \\ | | | | | | |_) | |  __/  / /\\  /  __/ |_| |_| |_| |
                                        \\__/_|_| |_| |_| .__/|_|\\___|  \\_\\ \\/ \\___|\\__|\\__|\\__, |
                                                       |_|        Produced By GDYH          |___/\s
                """);
        
        System.out.println("""
                                           _     _           _       _           _       _    \s
                                          | |__ (_) __ _  __| | __ _| |_ __ _   | | __ _| |__ \s
                                          | '_ \\| |/ _` |/ _` |/ _` | __/ _` |  | |/ _` | '_ \\\s
                                          | |_) | | (_| | (_| | (_| | |_ (_| |  | | (_| | |_) |
                                          |_.__/|_|\\__, |\\__,_|\\__,_|\\__\\__,_|  |_|\\__,_|_.__/\s
                                                   |___/  Powered by bigdata lab of GDYH                    \s
                """);
    }
    
}
